import type { App } from 'vue'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
// import 'element-plus/dist/index.css'
import 'element-plus/theme-chalk/el-message-box.css'
import 'element-plus/es/components/message/style/css'

export const initElementPlus = (app: App<Element>) => {
  app.use(ElementPlus, {
    locale: zhCn,
  })
}
